package com.huawei.appgallery.forum.section.buoy.action;

import android.content.Context;
import com.huawei.appgallery.assistantdock.base.externalaction.openviewaction.IOpenViewAction;
import com.huawei.appgallery.forum.section.api.ISectionDetailActivityProtocol;
import com.huawei.secure.android.common.intent.SafeBundle;
import com.huawei.secure.android.common.intent.SafeIntent;
import o.dys.a;
import o.fho;
import o.fiu;
import o.fjb;
import o.fjc;

public class OpenSectionDetailAction extends IOpenViewAction {
    public static final String ACTION = "open_section_detail_action";
    private static fjc<Object> postCallBack;

    public OpenSectionDetailAction(a aVar, SafeIntent safeIntent) {
        super(aVar, safeIntent);
    }

    public void onAction() {
        SafeBundle safeBundle = new SafeBundle(this.intent.getExtras());
        fjb ˎ = fho.ˏ().ˋ("Section").ˎ("section_detail_activity");
        ISectionDetailActivityProtocol iSectionDetailActivityProtocol = (ISectionDetailActivityProtocol) ˎ.ˊ();
        iSectionDetailActivityProtocol.setUri(safeBundle.getString("SEGMENT_URI").replace("buoy_", ""));
        iSectionDetailActivityProtocol.setAppId(safeBundle.getString("APPID"));
        iSectionDetailActivityProtocol.setDomainId(safeBundle.getString("DOMAIN_ID"));
        fiu.ˊ().ॱ((Context) this.callback, ˎ, postCallBack);
    }

    public static void setPostCallBack(fjc<Object> o_fjc_java_lang_Object) {
        postCallBack = o_fjc_java_lang_Object;
    }
}
